import 'package:flutter/material.dart';
import 'gesture.dart';
import 'multipleGes.dart';

void main() => runApp(const MyApp());

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      home: Scaffold(
        appBar: AppBar(title: const Text("event demo")),
        // body: Listener(
        //   child: Container(
        //     color: Colors.red,//背景色红色
        //     width: 300,
        //     height: 300,
        //   ),
        //   onPointerDown: (event) => print("down $event"),//手势按下回调
        //   onPointerMove:  (event) => print("move $event"),//手势移动回调
        //   onPointerUp:  (event) => print("up $event"),//手势抬起回调
        // ),
        body: rawGestureDetector,
        // body: const GesEvent(),
      ),
    );
  }
}
